//
//  MoviePlayerViewController.m
//  native-mpmovieplayercontroller-player-demo
//
//  Created by holyen on 12-10-24.
//  Copyright (c) 2012年 holyen. All rights reserved.
//

#import "MoviePlayerViewController.h"

@interface MoviePlayerViewController ()

@end

@implementation MoviePlayerViewController

- (id)initWithHVideoBase:(HVideoBase *)aHVideoBase
{
    self = [super initWithNibName:nil bundle:nil];
    if (self)
    {
        _videoBase = [aHVideoBase retain];
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    _moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL URLWithString:_videoBase.videoURL]];
    [_moviePlayerController play];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}

@end
